package SoftwareConstruction;

public class Co_variance {
    public static void main(String[] args) {
        Number[] numbers = new Number[2];
        numbers[0] = Integer.valueOf(10);
        numbers[1] = Double.valueOf(3.14);
        Integer[] myInts = {1,2,3,4};
        Number[] myNumber = myInts;
        myNumber[0] = 3.14;
    }
}
